﻿<?php
	/*
	 * 显示用户资料，并提示是否进行修改
	 * 
	 * author：	天
	 * 
	 * date：	2009-03-09
	 * 
	 */
?>
<html>
<head>
	<title>用户资料</title>
	<meta http-equiv="Content-Type" content="text/xml; charset=UTF-8">
</head>

<body>
	<h1>我的个人资料</h1>
	<form action="/CodeIgniter/profile" method = post>
	<table border = 1 align = center>
	  <tr>
	    <td width = 150>你的id号</td>
	    <td width = 180><?=$user_list[0]->id ?></td>
	  </tr>
	  <tr>
	  	<td>你的名称</td>
	  	<td><?=$user_list[0]->name ?></td>
	  </tr>
	  <tr>
	  	<td>你回答的问题数</td>
	  	<td><?=$user_list[0]->answercount ?></td>
	  </tr>
	  <tr>
	  	<td>你的积分</td>
	  	<td><?=$user_list[0]->mark ?></td>
	  </tr>
	  <tr>
	  	<td>你的权限</td>
	  	<td><?if($user_list[0]->privilege) echo"管理员"; else echo"普通用户"; ?></td>
	  </tr>
	  <tr>
	  	<td>请输入新的密码</td>
	  	<td><input type= password name = "password1"></td>
	  </tr>
	  <tr>
	  	<td>请再次输入密码</td>
	  	<td><input type = password name = "password2"></td>
	  </tr>
	</table>
	<input type=hidden name="issubmit" value=1 />
	<div align = center><input type=submit value= "修改"></div>
	</form>
</body>

</html>